CKEDITOR.plugins.add('timestamp', {
	icons: 'timestamp',
	init: function(editor) {
		editor.addCommand('insertTimestamp', {
			exec: function(editor) {
				var now = new Date();
				editor.insertHtml('<p>The current date and time is232323232: ' + now.toString() + 'xcxzc</p><br/>');
			}
		});

		editor.ui.addButton( 'Timestamp', {
            label: 'Insert Timestamp',
            command: 'insertTimestamp',
            toolbar: 'insert'
        });
	}
})